package com.cnhis.cloudhealth.clinical.hosnurse.hosfitadvice.dao;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.cnhis.cloudhealth.commons.dao.BaseDao;
@Repository
public class HosFitAdviceDao extends BaseDao{
	 public int inPatient(Map map)throws Exception{
	    	return (int) queryForExtObject("HosFitAdvice.inPatient", map);
		}
	    public int checkAdviceSend(Map map)throws Exception{
	    	return (int) queryForExtObject("HosFitAdvice.checkAdviceSend", map);
		}
	    public void updateVaf2(Map map)throws Exception{
	    	update("HosFitAdvice.updateVaf2", map);
	    }
	    public void updateVbg2(Map map)throws Exception{
	    	update("HosFitAdvice.updateVbg2", map);
	    }
	    public List batchAdvice(Map map)throws Exception{
	    	return queryForList("HosFitAdvice.batchAdvice", map);
	    }
	    public List fetchFeeRecord(Map map)throws Exception{
	    	return queryForList("HosFitAdvice.fetchFeeRecord", map);
	    }
	    public int checkDate()throws Exception{
	    	return (int) queryForExtObject("HosFitAdvice.checkDate", null);
	    }
	    public Map getParams(Map map)throws Exception{
	    	return (Map) queryForExtObject("HosFitAdvice.getParams", map);
	    }
	    public void updateVBD2InsertVBG2(Map map)throws Exception{
	    	update("HosFitAdvice.updateVBD2InsertVBG2", map);
	    }
	    public void updateAppendOffice(Map map)throws Exception{
	    	update("HosFitAdvice.updateAppendOffice", map);
	    }
	    public int checkStates(Map map)throws Exception{
	    	return (int) queryForExtObject("HosFitAdvice.checkStates", map);
	    }
	    public int checkStopTime(Map map)throws Exception{
	    	return (int) queryForExtObject("HosFitAdvice.checkStopTime", map);
	    }
	    public void updateVAF2VBG2(Map map)throws Exception{
	    	update("HosFitAdvice.updateVAF2VBG2", map);
	    }
	    public int traceType(Map map)throws Exception{
	    	return (int) queryForExtObject("HosFitAdvice.traceType", map);
	    }
	    public int printTrace(Map map)throws Exception{
	    	return (int) queryForExtObject("HosFitAdvice.printTrace", map);
	    }
	    public void updateTraceAdvice(Map map)throws Exception{
	    	update("HosFitAdvice.updateTraceAdvice", map);
	    }
	    public int checkValidateTime(Map map)throws Exception{
	    	return (int) queryForExtObject("HosFitAdvice.checkValidateTime", map);
		 }
		 public int checkBeginTime(Map map)throws Exception{
			 return (int) queryForExtObject("HosFitAdvice.checkBeginTime", map);
		 }
		 public void updateDateTime(Map map)throws Exception{
			 update("HosFitAdvice.updateDateTime", map);
		 }
		 public void updateZeroLable(Map map)throws Exception{
			 update("HosFitAdvice.updateZeroLable", map);
		 }
		 public int checkTempAdviceStatus(Map map)throws Exception{
			 return (int) queryForExtObject("HosFitAdvice.checkTempAdviceStatus", map);
		    }
		    public int checkTerminationTime(Map map)throws Exception{
		    	return (int) queryForExtObject("HosFitAdvice.checkTerminationTime", map);
		    }
		    public void  updateTerminationTime(Map map)throws Exception{
		    	update("HosFitAdvice.updateTerminationTime", map);
		    }
}
